package com.aaa.mrcai.controller;

import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 惠普
 * @date 2021/12/15  22:09
 */
@RestController
@RequestMapping("detail")
public class DetailController {

    @Autowired
    private DetailService detailService;

    @RequestMapping("/getDetail/{id}")
    public AjaxResult seaGoodsList(@PathVariable("id") int id){
       return detailService.getDetail(id);
    }
}
